package com.zhejiangzhengyuan.municipal_common.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhejiangzhengyuan.municipal_common.entity.vo.CaseIsHandledVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author :linju 0
 * @create on : 2019/11/29
 */
@Repository
public interface CaseIsHandledMapper {

  List<CaseIsHandledVo> selectCaseIsHandledPage(
      @Param("caseType") String caseType,
      @Param("warnType") String warnType,
      @Param("dataOrigin") String dataOrigin,
      @Param("deviceCode") String deviceCode,
      @Param("reason") String reason,
      @Param("username") String username,
      @Param("startTimestamp") String startTimestamp,
      @Param("endTimestamp") String endTimestamp);

  Page<CaseIsHandledVo> selectCaseIsHandledPage(
      Page<CaseIsHandledVo> page,
      @Param("caseType") String caseType,
      @Param("warnType") String warnType,
      @Param("dataOrigin") String dataOrigin,
      @Param("deviceCode") String deviceCode,
      @Param("reason") String reason,
      @Param("username") String username,
      @Param("startTimestamp") String startTimestamp,
      @Param("endTimestamp") String endTimestamp);

  CaseIsHandledVo selectCaseIsHandledPageName(
      @Param("cid") Long cid, @Param("caseType") String caseType);

  Page<CaseIsHandledVo> selectPumpCaseIsHandledPage(
      Page<CaseIsHandledVo> page,
      @Param("dataOrigin") String dataOrigin,
      @Param("reason") String reason,
      @Param("username") String username,
      @Param("startTimestamp") String startTimestamp,
      @Param("endTimestamp") String endTimestamp,
      @Param("caseType") String caseType,
      @Param("warnType") String warnType);
}
